package com.oil.petro.eshop.dao;

import com.oil.petro.eshop.entity.Account;
import com.oil.petro.eshop.entity.Order;
import com.oil.petro.eshop.entity.Product;
import java.util.List;

public interface OrderDAO {

    public Order get(int id);
     public Order get(int accountId, int productId);

    public void delete(Order order);
     public void delete(int orderId);

    public int save(Order cart);

    public List<Product> getList(int accountId);

   // public void update(Order cart);

    public boolean isEmpty(int accountId, int productId);

    public void addOrder(int accountId, int productId, int quantity);

    //public int getQuantity(int accountId, int productId);

    public List<Product> getOrders();

    public void update(Order order);

  //  public int getQuantity(int accountId, int productId);

    public List<Order> getOrderedProducts(int accountId);
     public List<Order> getAccountsForProduct(int productId);
}
